import request from '@/utils/request'

export function getSearch(page = 1, options = {}, pageSize = 10) {
  console.log(page, options, pageSize)
  return request({
    url: '/api/search',
    params: {
      page,
      ...options,
      pageSize
    }
  })
}

export function deleteSearch(id) {
  return request.delete(`/api/search/${id}`)
}
